/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Entity;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.Text;
import com.google.appengine.repackaged.org.joda.time.DateTime;
import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType=IdentityType.APPLICATION)
public class BDoc {
    @PrimaryKey
    @Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY)
    private Long BDocID;

    @Persistent private String DocNum; // Sổ ghi số
    @Persistent private String SignByName; // Người ký
    @Persistent private Date SignDate; // Ngày ký
    @Persistent private String Subject; // Nội dung trích yếu
    @Persistent private String BriefContent; // Nội dung tóm tắt
    @Persistent private String Notes; // Ghi chú
    @Persistent private Date DraftDate; // Ngày soạn
    @Persistent private String DraftUserName; // Tên người soạn
    @Persistent private String ReplyReceiveName; // Trả lời VB nội bộ số
    @Persistent private Boolean State; // Trạng thái phát hành hay chưa
    @Persistent private String DocumentName; // Upload Document
    @Persistent private Long AccountID;

    public Boolean getState() {
        return State;
    }

    public void setState(Boolean State) {
        this.State = State;
    }

    public Long getBDocID(){
        return BDocID;
    }
    public String getDocNum() {
        return DocNum;
    }

    public void setDocNum(String DocNum) {
        this.DocNum = DocNum;
    }

    public String getSignByName() {
        return SignByName;
    }

    public void setSignByName(String SignByName) {
        this.SignByName = SignByName;
    }

    public Date getSignDate() {
        return SignDate;
    }

    public void setSignDate(Date SignDate) {
        this.SignDate = SignDate;
    }

    public String getSubject() {
        return Subject;
    }

    public void setSubject(String Subject) {
        this.Subject = Subject;
    }

    public String getNotes() {
        return Notes;
    }

    public void setNotes(String Notes) {
        this.Notes = Notes;
    }

    public Date getDraftDate() {
        return DraftDate;
    }

    public void setDraftDate(Date DraftDate) {
        this.DraftDate = DraftDate;
    }

    public String getDraftUserName() {
        return DraftUserName;
    }

    public void setDraftUserName(String DraftUserName) {
        this.DraftUserName = DraftUserName;
    }

    public String getReplyReceiveName() {
        return ReplyReceiveName;
    }

    public void setReplyReceiveName(String ReplyReceiveName) {
        this.ReplyReceiveName = ReplyReceiveName;
    }

    /**
     * @return the DocumentName
     */
    public String getDocumentName() {
        return DocumentName;
    }

    /**
     * @param DocumentName the DocumentName to set
     */
    public void setDocumentName(String DocumentName) {
        this.DocumentName = DocumentName;
    }

    /**
     * @return the AccountID
     */
    public Long getAccountID() {
        return AccountID;
    }

    /**
     * @param AccountID the AccountID to set
     */
    public void setAccountID(Long AccountID) {
        this.AccountID = AccountID;
    }

    /**
     * @return the BriefContent
     */
    public String getBriefContent() {
        return BriefContent;
    }

    /**
     * @param BriefContent the BriefContent to set
     */
    public void setBriefContent(String BriefContent) {
        this.BriefContent = BriefContent;
    }
}
